package com.design.flyweight.game;

// 武器类，实现了装备接口
class Weapon implements Equipment {
    private String name;

    public Weapon(String name) {
        this.name = name;
    }

    @Override
    public void use(Player player) {
        System.out.println(player.getName() + " is using " + name);
    }
}
